package org.dicr.util.data.exc;


/**
 * File data format exception.
 * 
 * @author <A href='http://dicr.org'>Igor A Tarasov</A>
 * @version 060515
 */
public class FileFormatException extends DataException {
	private static final long serialVersionUID = 5645271846693348108L;

	/**
	 * Constructor
	 * 
	 * @param message
	 */
	public FileFormatException(String message) {
		super(message);
	}

	/**
	 * Constructor
	 * 
	 * @param cause
	 */
	public FileFormatException(Throwable cause) {
		super(cause);
	}

	/**
	 * Constructor
	 * 
	 * @param message
	 * @param cause
	 */
	public FileFormatException(String message, Throwable cause) {
		super(message, cause);
	}

	/**
	 * Constructor
	 * 
	 * @param fileName name of current file
	 * @param lineNo line number, witch cause this exception
	 */
	public FileFormatException(String fileName, int lineNo) {
		super(fileName + ":" + lineNo);
	}

	/**
	 * Constructor
	 * 
	 * @param fileName name of file
	 * @param lineNo line number
	 * @param ex cause exception
	 */
	public FileFormatException(String fileName, int lineNo, Throwable ex) {
		super(fileName + ":" + lineNo, ex);
	}

	/**
	 * Constructor
	 * 
	 * @param fileName name of file
	 * @param errLine error line
	 */
	public FileFormatException(String fileName, String errLine) {
		super(fileName + ":'" + errLine + "'");
	}
}
